﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Entidades="clr-namespace:BancoSim.Entidades.Entidades;assembly=BancoSim.Entidades" mc:Ignorable="d" x:Class="BancoSim.Ventanas_Modales.cwListarGrupos"
        Title="cwListarGrupos" Height="316.471" Width="247.588" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}">
    <Window.Resources>
        <CollectionViewSource x:Key="clGrupoViewSource" d:DesignSource="{d:DesignInstance {x:Type Entidades:clGrupo}, CreateList=True}"/>
    </Window.Resources>
    <Grid>
        <Rectangle Fill="Black" RadiusY="8.941" RadiusX="8.941" Height="300" VerticalAlignment="Bottom" Margin="0,0,18,0"/>
        <Button Content="x" Margin="0,5,11,0" Name="btnCerrar" Click="btnCerrar_Click" VerticalAlignment="Top" Style="{DynamicResource btnStyleClose}" HorizontalAlignment="Right" Width="21"/>
        <Grid DataContext="{StaticResource clGrupoViewSource}">

            <DataGrid x:Name="clGrupoDataGrid" Margin="20,58,0,43" ItemsSource="{Binding}" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="False" HorizontalAlignment="Left" Width="195">
                <DataGrid.Columns>
                    <DataGridTextColumn IsReadOnly="True" x:Name="nombreGrupoColumn" Width="170" Header="Nombre Grupo" Binding="{Binding NombreGrupo}"/>
                </DataGrid.Columns>
            </DataGrid>
            <TextBox HorizontalAlignment="Left" Name="txbGrupo" Height="23" Margin="24,28,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
            <Button Name="btnBuscar" Content="B" Click="btnBuscar_Click" HorizontalAlignment="Left" Margin="162,31,0,0" VerticalAlignment="Top" Width="27"/>
        </Grid>
        <Button Content="E" Name="btnEditar" Click="btnEditar_Click" HorizontalAlignment="Left" Margin="185,280,0,0" VerticalAlignment="Top" Width="26"/>
    </Grid>
</Window>
